public class AC220 {
    private int voltage =220;

    public int outputVoltage(){

        System.out.println("输入电压"+voltage);
        return voltage;
    }

    public int getVoltage() {
        return voltage;
    }

    public void setVoltage(int voltage) {
        this.voltage = voltage;
    }
}
